package com.topera.eduservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.topera.eduservice.entity.EduCourse;
import com.topera.eduservice.entity.frontvo.CourseWebVo;
import com.topera.eduservice.entity.vo.CoursePublish;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author puzhenjiang
 * @since 2020-05-18
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据课程id获取课程信息
     * @param courseId
     * @return
     */
    public CoursePublish getPublishCourseInfo(String courseId);

    /**
     * 获取课程信息--前台使用
     * @param courseId
     * @return
     */
    CourseWebVo getBaseCourseInfo(String courseId);
}
